package com.zhl.service.impl;

import com.zhl.dao.cm.INSBMessageMapper;
import com.zhl.dao.main.UserMapper;
import com.zhl.entity.INSBMessage;
import com.zhl.entity.User;
import com.zhl.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2019/4/12.
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private INSBMessageMapper insbMessageMapper;

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUser(String userid) {


        return userMapper.getUser(userid);
    }

    @Override
    public List<User> getUser() {
        return null;
    }

    @Override
    public List<INSBMessage> getMessages() {
        return insbMessageMapper.getMessageList();
    }
}
